using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

namespace NDomain.Helpers
{
    public static class IEnumerableHelper
    {
        public static IEnumerable Filter<T>(IEnumerable elements)
        {
            foreach (object element in elements)
                if (element is T) yield return element;
        }
    }
}
